package com.py.inrejected.mapper;





import com.py.inrejected.domain.PyAttachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 附件Mapper接口
 * 
 * @author 童佳
 * @date 2024-11-27
 */
public interface PyAttachmentMapper 
{
    /**
     * 查询附件
     * 
     * @param attachmentId 附件主键
     * @return 附件
     */
    public PyAttachment selectPyAttachmentByAttachmentId(Integer attachmentId);

    /**
     * 查询附件列表
     * 
     * @param pyAttachment 附件
     * @return 附件集合
     */
    public List<PyAttachment> selectPyAttachmentList(PyAttachment pyAttachment);

    /**
     * 新增附件
     * 
     * @param pyAttachment 附件
     * @return 结果
     */
    public int insertPyAttachment(PyAttachment pyAttachment);

    /**
     * 修改附件
     * 
     * @param pyAttachment 附件
     * @return 结果
     */
    public int updatePyAttachment(PyAttachment pyAttachment);

    /**
     * 删除附件
     * 
     * @param attachmentId 附件主键
     * @return 结果
     */
    public int deletePyAttachmentByAttachmentId(Integer attachmentId);

    public int deletePyAttachmentByOwnershipNumber(@Param("ownershipNumber") String ownershipNumber);
    /**
     * 批量删除附件
     * 
     * @param attachmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePyAttachmentByAttachmentIds(Integer[] attachmentIds);
}
